package cn.chencaiju.exam.oop;

public class Phone {
	private String brand;
	private int price;
	
	public Phone() {
		super();
	}
	public Phone(String brand, int price) {
		super();
		this.brand = brand;
		this.price = price;
	}
	
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public void call() {
		System.out.printf("正在使用价格为%d元的%s的手机打电话....\n",price,brand);
	}
	public void sendMessage() {
		System.out.printf("正在使用价格为%d元的%s的手机发短信....\n",price,brand);

	}
	public void playGame() {
		System.out.printf("正在使用价格为%d元的%s的手机玩游戏....\n",price,brand);
	}
}
